/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package recanto.das.pedrinhas.mesagens;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 *
 * @author Guilherme
 */
public class PropertiesLoader {
    private Properties props;  
    private String nomeDoProperties = "newproperties.properties";  
    
    protected PropertiesLoader(){
        props = new Properties();
        InputStream in = this.getClass().getResourceAsStream("Erros.properties");
        try{
            props.load(in);
            in.close();
        }catch(IOException e){
            e.printStackTrace();
        }
        
    }
    
    protected String getValor(String chave){
        return (String)props.getProperty(chave);
    }
}
